<%-- 
    Document   : Ver_Propiedad
    Created on : 26-oct-2012, 18:48:07
    Author     : Pavilion
--%>

<%@page import="Clases.ConectarBD" %>
<%@page import="Clases.Usuario" %>
<%@page import="Clases.Propiedades" %>
<%@page import="Clases.Boletas" %>
<%@page import="java.util.*,com.mysql.jdbc.Connection,java.sql.*,java.util.Calendar" %>
<%@page import="java.text.*" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">

<% if (session.getAttribute("elUsuario")==null) {
        response.sendRedirect("index.jsp");
    } else {
        HttpSession miSesion = request.getSession();
        Usuario esteUsuario = (Usuario) miSesion.getAttribute("elUsuario");
    }
 HttpSession miSesion = request.getSession();
 String ID = request.getParameter("id_inmueble"); 
 %>
 
 <jsp:useBean id="casa" scope="page" class="Clases.Propiedades" /> 
 <% casa.cargarInmueble(Integer.valueOf(request.getParameter("id_inmueble"))); %>

<script type="text/javascript"> 
 function cerrar(){
    window.close();   
    window.open('Ver_Propiedades_Disponibles.jsp','_blank´','toolbar=no,status=no,menubar=no,scr ollbars=no,resizable=yes,width=450px,height=300px, left=375px, top=250px');
  }
 </script>
 
<html>

<head>
	<title>Ver Propiedades</title>
	<link rel=StyleSheet href="styles.css" type="text/css" media="screen"/>
</head>

<body class="ubicacion" style="margin: auto">    


<div class="header" >
<Div  style="width: 100%; height: 80px; background-color: blue"  > 
    <H4>MUNICIPALIDAD DE PUERTO DESEADO</H4>
    <H5>Agencia de Recaudaci&oacute;n Municipal</H5>
</Div>
<HR size="2" color="negro"/>

<div class="header">
    <img src="imagenes\escudodeseado.jpg" Style="text-decoration:underline" width="100" height="100" border="0" padding="0" margin="0" alt="" />
    <img src="imagenes\PDeseado.jpg" Style="text-decoration:underline" width="700" height="100" border="0" padding="0" margin="0" alt=""/>
</div>

<HR size="2" color="negro"/>

</div>
<HR size="2" color="negro"/>
<div >
    <h1 class="h12" style="margin-bottom: 10px">Propiedad Seleccionada</h1>
</div>
<HR size="2" color="negro"/>

<HR size="2" color="negro" style="margin-bottom: 5px; margin-bottom: 5px;"/>
<div style="width: 100%; height: 30px; background-color: rgba(128, 128, 128, 0.19)" >
    <h1 class="h12" style="color: blue; margin-top: 5px; margin-bottom: 5px">TITULAR DE LA CUENTA</h1>
</div>   
<HR size="2" color="negro" style="margin-bottom: 5px; margin-bottom: 5px;"/>

<div >      
    <div ><h2 style="font-size: 14pt; background: gray; margin-top: 10px; margin-bottom: 5px; color: white; display: inline-block; padding-left: 5px">Nombre: </h2><h3 style="font-size: 12pt; display: inline-block; padding-left: 15px"><%= miSesion.getAttribute("denominacion")%></h3> </div>
    <div ><h2 style="font-size: 14pt; background: gray; margin-top: 5px; margin-bottom: 5px; color: white; display: inline-block; padding-left: 5px">Direcci&oacute;n: </h2><h3 style="font-size: 12pt; display: inline-block; padding-left: 15px" ><%= miSesion.getAttribute("direccionUs") %></h3></div>  
</div >

<HR size="2" color="negro" style="margin-bottom: 5px; margin-top: 25px;"/>
<div style="width: 100%; height: 30px; background-color: rgba(128, 128, 128, 0.19)" >
    <h1 class="h12" style="color: blue; margin-top: 5px; margin-bottom: 5px">Caracter&iacute;sticas de la Propiedad</h1>
</div> 
<HR size="2" color="negro" style="margin-top: 5px; margin-bottom: 15px;"/>

<div style="width: 100%; ">
<div style="display: inline-block; width: 250px; height: 30px; "> 
    <h1 style="width: 105px; font-size: 14pt; background: gray; margin-top: 5px; margin-bottom: 5px; color: white; display: inline-block; padding-left: 5px">Partida: </h1><h1 class="h12"  style="width: 135px; display: inline-block; margin-top: 5px; margin-left: 3px; text-align: right"><jsp:getProperty name="casa" property="cuenta"/> DV 0<jsp:getProperty name="casa" property="zona"/></h1>
</div>
<div style="display: inline-block; width: 230px; height: 30px; "></div>
<div style="display: inline-block; width: 310px; height: 30px;">
     <h1 style="width: 100px; font-size: 14pt; background: gray; margin-top: 5px; margin-bottom: 5px; color: white; display: inline-block; padding-left: 5px; vertical-align: top">Catastro:</h1><h1 class="h12"  style="width: 165px; display: inline-block; margin-top: 5px; margin-left: 3px; text-align: right"><jsp:getProperty name="casa" property="designacionCatastro"/></h1>
</div>

</div> 
<HR size="2" color="negro" style="margin-top: 10px"/>

<div style="width: 100%;">
    <div style="width: 650px; margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; display: inline-block;"><h1 style="width: 105px; font-size: 14pt; background: gray; margin-top: 5px; margin-bottom: 5px; color: white; display: inline-block; padding-left: 5px">Direcci&oacute;n:</h1><h3 style="font-size: 12pt; display: inline-block; padding-left: 15px"><jsp:getProperty name="casa" property="direccion"/></h3></div>
    <div style="width: 150px; margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; display: inline-block;"><h1 style="width: 65px; font-size: 14pt; background: gray; margin-top: 5px; margin-bottom: 5px; color: white; display: inline-block; padding-left: 5px">Zona:</h1><h3 style="font-size: 12pt; display: inline-block; padding-left: 15px"><jsp:getProperty name="casa" property="zona"/></h3></div> 
</div>

<div style="width: 100%">
    <div style="width: 310px; margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; display: inline-block;"><h1 style="width: 105px; font-size: 14pt; background: gray; margin-top: 5px; margin-bottom: 5px; color: white; display: inline-block; padding-left: 5px">Valuaci&oacute;n Fiscal:</h1><h3 style="font-size: 12pt; display: inline-block; padding-left: 15px">$    <jsp:getProperty name="casa" property="baseImponibleString"/></h3></div> 
    <div style="width: 240px; margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; display: inline-block;"><h1 style="width: 105px; font-size: 14pt; background: gray; margin-top: 5px; margin-bottom: 5px; color: white; display: inline-block; padding-left: 5px">Superficie Cubierta:</h1><h3 style="font-size: 12pt; display: inline-block; padding-left: 15px"><jsp:getProperty name="casa" property="superficieCubiertaString"/>  m<sup>2</sup></h3></div> 
    <div style="width: 240px; margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; display: inline-block;"><h1 style="width: 105px; font-size: 14pt; background: gray; margin-top: 5px; margin-bottom: 5px; color: white; display: inline-block; padding-left: 5px">Superficie Total:</h1><h3 style="font-size: 12pt; display: inline-block; padding-left: 15px"><jsp:getProperty name="casa" property="superficieTotalString"/>  m<sup>2</sup></h3></div> 
    <HR size="2" color="negro" style="margin-bottom: 5px; margin-bottom: 5px;"/>
</div>


<div style="margin-top: 30px">
   <% if (casa.getPendientes()!=0){
    %>
    <h1 style="width: 85px; margin-right: 0px; color: white; font-size: 14pt; background: gray; margin-left: 0px; padding-right: 0px; padding-left: 0px; display: inline-block;">Deuda:</h1><h1 class="h6" style="margin-left: 10px; display: inline-block">Esta Propiedad registra deuda</h1>
      
    <HR size="2" color="negro" style="margin-bottom: 0px; margin-top: 30px"/>        
    <p align="center" style="vertical-align: middle"><a  href="javascript:onClick=cerrar();"> Volver </a> - <a href="#" onClick="window.open('ServletDeuda?id_inmueble=<%= ID %>')">Consulta de Deuda</a> - <a href="#" onClick="window.open('ServletBoletaDeuda?id_inmueble=<%= ID %>','_blank','toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,width=450px,height=300px, left=375px, top=250px')">Imprimir Facturas Adeudadas</a></p>    
   <% } else { %>
   <h1 style="width: 85px; margin-right: 0px; color: white; font-size: 14pt; background: gray; margin-left: 0px; padding-right: 0px; padding-left: 0px; display: inline-block;">Deuda:</h1><h1 class="h6" style="margin-left: 10px; display: inline-block">Esta Propiedad no registra deuda</h1>
 
        <HR size="2" color="negro" style="margin-bottom: 0px; margin-top: 30px"/>    
        <p align="center" style="vertical-align: middle"><a  href="javascript:onClick=cerrar();"> Volver </a> - <a class="inhab">Consulta de Deuda</a> - <a class="inhab">Imprimir Facturas Adeudadas</a></p>  
   <% } %>
</div>

</body>
</html>



